<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html>
<html>
<head>
    <meta name="generator"
          content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39"/>
    <title>登录界面</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet"/>
    <!-- 可选的Bootstrap主题文件（一般不使用） -->
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap-theme.min.css"></script>
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <sf:form class="form-horizontal col-sm-offset-3 " method="post" modelAttribute="loginUser">
        <div class="form-group">
            <label for="userName" class="col-sm-2 control-label">用户名</label>

            <div class="col-sm-4">

                <sf:input type="text" class="form-control" id="userName" path="loginName"
                          placeholder="请输入名字"/><sf:errors path="loginName"/>
            </div>
        </div>

        <div class="form-group">
            <label for="userPassword" class="col-sm-2 control-label">密码</label>

            <div class="col-sm-4">

                <sf:input type="password" class="form-control" id="userPassword" path="loginPassword"
                       placeholder="请输入密码"/><sf:errors path="loginPassword"/>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-4 ">
                <button type="submit" class="btn btn-default btn-info  btn-block">登录</button>
            </div>
        </div>
    </sf:form>

</div>

<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
</body>
</html>
